<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript">
      var _speedMark = new Date();
      //在js中使用site_url,则这个javascript片段一定要保留
      var site_url = "${SITE_URL}";            // app的url前缀,在ajax调用的时候，应该加上该前缀
    </script>

    <%block name='head'>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title>开发者中心|蓝鲸智云社区版</title>
      <meta name="keywords" content="开发者中心,游戏运维,运维,服务器管理,模块配置,监控,腾讯游戏,蓝鲸,智云,devops,运维开发,蓝鲸社区版,社区版,作业平台,集成平台,配置平台,管控平台" />
      <meta name="description" content="蓝鲸智云软件社区版是由蓝鲸智云团队提供的一套基于PaaS的技术解决方案，旨在改变中国运维行业，帮助企业快速达到基础运维支撑能力，并提升技术人员的DevOps能力。该版本提供了配置平台，作业平台，集成平台等强大功能，用户在使用时，请查阅并遵守《蓝鲸智云软件用户服务协议》。" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

      <link href="${STATIC_URL}favicon.ico" rel="Shortcut Icon">

      <!-- bootstrap CSS 公共样式 -->
      <link rel="stylesheet" type="text/css" href="${STATIC_URL}assets/bootstrap-3.1.1/css/bootstrap.min.css">
      <!-- 图标（bk-icon） -->
      <link href="${STATIC_URL}assets/bk-icon-2.0/iconfont.css" rel="stylesheet">
      <!-- bkdialog -->
      <link rel="stylesheet" type="text/css" href="${STATIC_URL}assets/bkDialog-1.0/css/ui-dialog.css">
      <!-- 顶部导航css 私有样式 -->
      <link rel="stylesheet" type="text/css" href="${STATIC_URL}css/layout_head.${CSS_SUFFIX}">
      <!-- base 基本样式 -->
      <link rel="stylesheet" type="text/css" href="${STATIC_URL}css/base.${CSS_SUFFIX}?v=${STATIC_VERSION}">
      <!--select2-->
      <link href="${STATIC_URL}assets/select2-3.5.3/select2.css?v=1" rel="stylesheet">
    </%block>
    <style>
      html,body{
          height: 100%;
      }
    </style>
</head>

<body>

    <%block name='head_content'>
        <!-- 通知公告 -->
        <div class='flayer_desk'></div>

        <!-- 头部横向导航 start -->
        <div class="head" id="header">

            <div class="head_box">
                <div class="inner wrp">
                  <span class="logo_bk">
                      <a title="蓝鲸智云工作台" href="${SITE_URL}">
                        <img src="${STATIC_URL}img/logo/logo_develper_01.png"/>
                      </a>
                      <a title="蓝鲸智云开发者中心" href="${SITE_URL}app/list/">
                        <img src="${STATIC_URL}img/logo/logo_develper_02.png"/>
                      </a>
                  </span>
                    <input type='hidden' name='csrfmiddlewaretoken' value='${csrf_token}'>
                    <div class="account">
                        <div class="account_meta account_info account_meta_primary">
                              <a href="${SITE_URL}accounts/profile/" class="nickname" title="${request.user.username if request.user and request.user.username else ''}">${request.user.username if request.user and request.user.username else ''}</a>
                               <a href="${SITE_URL}accounts/profile/">
                                <img src="${STATIC_URL}img/getheadimg.jpg" class="avatar">
                                % if request.user.is_superuser:
                                  <i class="crown"></i>
                                % endif
                               </a>
                        </div>
                        % if request.user.username:
                            <div class="account_meta account_logout account_meta_primary"><a id="logout" href="${LOGOUT_URL}">注销</a></div>
                        % endif
                    </div>

                </div>
            </div>

        </div>
        <!-- 头部横向导航 end -->
    </%block>
      <!-- 中间主体内容 start -->
      <div id="body" class="body page_index">
          <div id="js_container_box" class="container_box cell_layout side_l">

            <%block name="body_content">
              <!-- 左侧导航 start -->
              <div class="col_side">
                <%block name='left_content'>
                </%block>
              </div>
              <!-- 左侧导航 end -->

              <!-- 右侧内容 start -->
              <div class="col_main">
                <%block name="right_content_base">
                </%block>
              </div>
              <!-- 右侧内容 end -->
            </%block>

          </div>

          <div id="return_top" class="return_btn return_top" href="#" title="返回顶部" style="display:none;">
          <span aria-hidden="true" class="glyphicon glyphicon-chevron-up"></span>
        </div>
        <div id="return_bottom" class="return_btn return_bottom" href="#" title="返回底部" style="display:none;">
          <span aria-hidden="true" class="glyphicon glyphicon-chevron-down"></span>
        </div>

        <!-- <div class="faq"> -->
          <!-- <ul class="links"> -->
            <!-- <li class="links_item"><a href="mailto:contactus_bk@tencent.com" style="font-size:14px;">联系我们</a></li> -->
          <!-- </ul> -->
          <!-- <p class="tail">contactus_bk@tencent.com</p> -->
        <!-- </div> -->
      </div>
      <!-- 中间主体内容 end -->
      <!-- 尾部声明 start -->
      <div class="foot" id="footer">
        <ul class="links ft">
            <li>
                <a id="contact_us" class="link">QQ咨询(800802001)</a>
                | <a href="https://bk.tencent.com/s-mart/community/" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸论坛</a>
                | <a href="https://bk.tencent.com/" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸官网</a>
                | <a href="${SITE_URL}" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸智云工作台</a>
            </li>
            <li><p class="copyright">Copyright © 2012-${NOW.year} Tencent BlueKing. All Rights Reserved.</p> </li>
          <li><p class="copyright">蓝鲸智云 版权所有</p> </li>
        </ul>
      </div>
      <!-- 尾部声明 end -->
      <!--logo修改-->
      <div id="div_m_logo" style="display:none">
          <form method='post' id='form_logo' action=''  enctype='multipart/form-data'>
              <input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
              <input type='file' name='logo_m' id='logo_m'>
              <div class="ml3 mt10" style="color:#999;">建议LOGO大小为100px*100px</div>
              <div class="ml3 mt10" style="color:red" id="logo_error_tips"></div>
              <div class="ml3 mt10" style="color:green" id="logo_success_tips"></div>
          </form>
          <iframe name="logo_target_frame" style="display:none;"></iframe>
      </div>
      <!-- jQery库 公共脚本 -->
      <script src="${STATIC_URL}assets/jquery-1.8.2.min.js"></script>
      <script src="${STATIC_URL}assets/jquery.zeroclipboard-0.2.0/jquery.zeroclipboard.min.js"></script>
      <!-- bootstrap JS 公共脚本 -->
      <script src="${STATIC_URL}assets/bootstrap-3.1.1/js/bootstrap.min.js"></script>
      <!-- bkdialog -->
      <script src="${STATIC_URL}assets/bkDialog-1.0/js/dialog.js"></script>
      <!--select2-->
      <script src="${STATIC_URL}assets/select2-3.5.3/select2.min.js"></script>
      <!--[if lt IE 9]>
        <script src="${STATIC_URL}assets/html5shiv-3.7.2.min.js"></script>
        <script src="${STATIC_URL}assets/respond-1.4.2.min.js"></script>
      <![endif]-->
      <!-- Pass配置文件  -->
      <script src="${STATIC_URL}js/core.${JS_SUFFIX}?v=${STATIC_VERSION}"></script>
      <script src="${STATIC_URL}js/utils.${JS_SUFFIX}?v=${STATIC_VERSION}"></script>
      <script src="${STATIC_URL}js/paas_base.${JS_SUFFIX}?v=${STATIC_VERSION}"></script>
      <!-- 兼容性设置 -->
      <!--[if lt IE 6]>\xe8\x93\x9d\xe9\xb2\xb8\xe6\x99\xba\xe8\x90\xa5\x20\xe7\x89\x88\xe6\x9d\x83\xe6\x89\x80\xe6\x9c\x89<![endif]-->
      <%block name="base_app">
      </%block>
      ${self.body()}
</body>
</html>
